<template>
  <div class="personInfoCss">
    <div class="personInfoItemCss" v-for="(item , index) in 3" :key="index">
      <div class="personInfoItemLeftCss">
      </div>
      <div class="personInfoItemRightCss">
        <div class="personNameCss">
          <span>张三</span>
          <el-button type="text" @click="goToPersionDetailPage">查看详情</el-button>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  methods:{
    goToPersionDetailPage(){
      const obj = {
        path: '/zp/physician/detail',
        query: {
          id: '111'
        }
      }
      this.$router.push(obj);
    },
  },
}
</script>

<style lang="scss" scoped>
.personInfoCss{
  position: relative;
  display: flex;
  justify-content: space-between;
  padding-bottom: 25px;
  flex-wrap: wrap;
  .personInfoItemCss{
    width: calc( 50% - 10px);
    border: 2px solid #cfcfcf;
    border-radius: 8px;
    margin-top: 20px;
    padding: 15px;
    display: flex;
    .personInfoItemLeftCss{
      height: 240px;
      width: 180px;
      border-radius: 6px;
      border: 1px solid #cfcfcf;
    }
    .personInfoItemRightCss{
      margin-left: 20px;
      width: calc( 100% - 220px);
      .personNameCss{
        font-size: 18px;
        font-weight: bold;
        display: flex;
        justify-content: space-between;
      }
    }
  }
}
</style>